<?php
/**
 * 微信用户管理
 */
namespace backend\modules\admin\controllers;

use Yii;
use yii\data\ActiveDataProvider;
use backend\modules\admin\models\Activity;
use yii\web\Response;
class ActivityController extends Controller
{

    public function init()
    {
        parent::init();
    }


    public function actionIndex()
    {
        $where = ['status'=>1];
        $dataProvider = new ActiveDataProvider([
            'query' => Activity::find()->orderBy('id DESC'),
            'pagination' => [
                'pageSize' => 20,
            ],
        ]);

        return $this->render('index', [
            'dataProvider' => $dataProvider,
        ]);
    }
}